//  Color Variables

$white: #ffffff;
$errorRed: #D41C22;
$grey1: #fafafa;
$grey2: #e0e0e0;
$grey3: #bdbdbd;
$grey4: #9e9e9e;
$grey5: #757575;
$grey6: #616161;
$black: #000000;
$blue: #0277bd;
$defaultBlue: #337ab7;
$hoverBlue: #286090;
$darkBlue: #1C2A3A; 
$darkBlue1: #2d3844;
$darkBlue2: #465464;
$darkBlue3: #626F7F;
$green: #30a83a;
$red: #d11c23;
$orange: #f6921e;
$darkBlueInactive: #212427;
$darkBlueActive: #0F1E2E;
$contentText: #2e2e2e;


// Width Variables
$sidebarMenuWidth: 200px;

// Height Variables
$headerHeight: 50px;
$footerHeight: 20px;

/*
  Page Reset
*/
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  color: $contentText;
  background-color: $white;
}

a, a:hover {
  //color: $white;
  text-decoration: none;
}

select {
  display: block;
  text-indent: 10px;
  height: 22px;
  line-height: 1.4;
  background-color: $white;
  background-image: none;
  /*border: 1px solid #ccc;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;*/
}

.main {
  width: 100%;
  height: 100%;
}

/*
  Form 
*/

form .form-error {
  color: $errorRed;
  font-size: 12px;
  text-align: right;
  font-style: italic;
}

/*
  Login
*/
.login-bg-wrap {
  float: left;
  width: 60%;
  height: 100%;
  position: relative;
  background: $darkBlue url(../images/logo-single-cp.png) no-repeat fixed;
  background-position: 60%;
  color: $white;

  .login-bg {
    margin: auto;
    width: 80%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
  }
}

.login-form-wrap {
  float: right;
  width: 40%;
  height: 100%;
  position: relative;

  .login-logo {
    width: 200px;
    height: 50px;
    background: url(../images/logo-black.png) no-repeat;
    background-size: cover;
    background-position: 0 -50px;
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .login-language {
    position: absolute;
    bottom: 15px;
    right: 50px;
    color: $defaultBlue;
    cursor: pointer;
  }

  .login-language:hover {
    color: $hoverBlue;
  }

  .login-form {
    margin: auto;
    width: 70%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;

    .login-form-title, .login-form-item, .login-form-action {
      padding: 10px;
    }
    
    .login-form-item {
      label {
        padding-left: 0;
      }
    }

    .login-form-action {
      a {
        width: 100%;
      }
    }
  }
}



/*
  Header
*/
header {
  width: 100%;
  height: $headerHeight;
  color: $white;

  .rmcloud-header {
    width: 100%;
    height: 100%;
    background-color: $darkBlue;

    .header-left {
      float: left;
      height: 100%;

      a {
        float: left;
        display: block;
        height: 100%;
        width: $sidebarMenuWidth;
        border-right: 1px solid $grey2; 
      }

      a.plcm-logo {
        background: url(../images/logo.png) no-repeat center;
      }

      a.custom-logo {
        background: url(../images/custom-logo.png) no-repeat center;
      }

      .product-title {
        float: left;

        h3 {
          margin-left: 10px;
          line-height: .5;
        }
      }
    }

    .header-right {
      float: right;
      height: 100%;

      .header-topbar {
        height: 100%;

        .topbar-item{
          float: left;
          border-left: 1px solid $grey2;
          height: 100%;
          width: 60px;

          a {
            display: block;
            font-size: 16px;
            text-align: center;
            line-height: $headerHeight;
            text-decoration: none;
            color: $white;
            
            i {
              margin: 0 2px;
            }

            .dropdown-arrow {
              font-size: 12px;
            }
          }
          
        }
        
        .topbar-item:hover {
          background-color: $darkBlueInactive;

          a {
            color: $blue;
          }
        }

        .topbar-user, .topbar-user:hover {
          width: 150px;

          ul {
            padding: {
              top: 0;
              bottom: 0;
            }

            a{
              color: $black;
              line-height: 2;
            }
          }
        }

        .topbar-alert {
          a {
            position: relative;

            .topbar-alert-num {
              position: absolute;
              background-color: $orange;
              color: $white;
              font-size: 12px;
              top: 8px;
              right: 10px;
              line-height: .9;
              padding: 3px;
              border-radius: 25px;
            }
          }
        }
      }
    }

  }
}

/*
  Sidebar Menu
*/
.sidebar {
  display: block;
  width: $sidebarMenuWidth;
  height: calc(100% - #{$footerHeight + $headerHeight});
  float: left;
  background-color: $darkBlue1;
  border-right: 1px solid $grey2;

  .sidebar-menu {
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;

    .sidebar-seach-group {
      
      margin: 3px 3px;
      
    }

    .sidebar-menu-item {

      margin: 0;
      padding: 0;
      font-size: 16px;

      a {
        position: relative;
        display: block;
        width: 100%;
        height: 40px;
        color: $white;
        line-height: 40px;
        text-decoration: none;
        border: {
          bottom: 1px solid $grey2;
          left: 5px solid transparent;
        }

        i {
          margin: 0 15px;
        }
      }

      a:hover{
        border-left: 5px solid $blue;
        background-color: $darkBlueActive;
      }

      a.active {
        color: $blue;
        border-left: 5px solid $blue;
        background-color: $darkBlueActive;
      }

      .sidebar-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        background-color: $darkBlue2;

        .sidebar-menu-item {
          font-size: 14px;

          a {
            height: 30px;
            line-height: 30px;
            border: {
              bottom: none;
            }

            i {
              font-size: 8px;
            }
          }

          a.active {
            border-left: 5px solid $blue;
            background-color: $darkBlueActive;
          }

          .sidebar-menu {
            background-color: $darkBlue3;
          }
        }
      }
    }
  }

  .sidebar-menu-arrow {
    font-size: 8px;
    float: right;
  }
}

/*
  Footer
*/
footer {
  position: fixed;
  width: 100%;
  height: $footerHeight;
  background-color: $darkBlue;
  bottom: 0;
  color: $white;
  
  .rmcloud-footer {
    .company-info {
      float: left;
      margin: 0 5px;
    }

    .product-version {
      float: right;
      margin: 0 5px;

      span {
        margin: 2px;
      }
    }
  }
}

/*
  Main Content
*/
.main-content {
  display: block;
  width: calc(100% - #{$sidebarMenuWidth});
  height: calc(100% - #{$footerHeight + $headerHeight});
  float: right;
  overflow: hidden;
  overflow-y: auto;
  padding: 0;
  
  div.view-wrap {
    margin: 20px 20px;
  }
}

.view {
  form {
    div[class*='col-'] {
      padding: 0;
    }

    .form-panel:hover {
      border-left: 5px solid $blue;
    }

    .form-panel {
      border-left: 5px solid $grey2;
      margin: {
        bottom: 20px;
      }

      div.form-item, div.form-title {
        padding: 10px;
      }

      .form-title {
        display: inline-block;
        background-color: $grey1;
        width: 100%;
        font: {
          size: 16px;
          weight: bold;
        } 
      }

      .form-content {
        background-color: $grey1;
        padding: 0 15px;
        border-top: 1px solid $grey2;
      }
    }

    .form-summary-pannel{
      position: fixed;
      right: 15px;
      background-color: $grey1;
      
      .form-summary-title {
        font: {
          size: 16px;
          weight: bold;
        } 
        padding: 10px;
      }

      .form-summary-content {
        list-style: none;
        padding: 0;

        .form-summary-item {
          padding: 5px 15px;
        }

        .form-summary-action-panel {
          text-align: center;
          padding: 10px 0;
          border: {
            top: 1px solid $grey2;
          }
        }
      }
    }
  }
}

.toolbar {
  width: 100%;
  height: 34px;
  margin: 20px 0;

  .toolbar-title {
    height: 100%;
    display: inline-block;
    border: {
      left: 5px solid $blue;
      bottom: 1px solid $blue;
    } 
    font-size: 20px;
    margin: {
      right: 10px;
    }
    padding: 0 12px;
  }
}

.grid {
  height: calc(100% - 65px);
}

  





